Cancel Appointment Workflow
Bookadoc integrates with DrChrono to allow patients to cancel appointments with healthcare providers.
Cancel the Appointment
Bookadoc sends a request to DrChrono to cancel the appointment.
API Endpoint
DELETE /api/appointments/{appointmentId}
Example Request
DELETE /api/appointments/1861676
Response Example
204 No Content
If the request is successful, the appointment is updated in DrChrono, and Bookadoc records the appointment details.
Error Handling
If an error occurs at any step, Bookadoc handles it gracefully and provides feedback to the user.
Common Errors & Resolutions
| Error Code | Description | Resolution |
|---|---|---|
400 Bad Request | Missing or invalid input fields | Ensure all required fields are provided |
409 Conflict | Appointment slot already booked | Prompt user to select another slot |
500 Internal Server Error | AthenaHealth API issue | Retry the request after some time |
Conclusion
The booking appointment workflow ensures that Bookadoc synchronizes seamlessly with DrChrono, allowing patients to cancel appointments while keeping providers' schedules up to date. By validating data, checking availability, and handling errors effectively, Bookadoc enhances the booking experience for both patients and providers.